import Mock from 'mockjs';

let system = [{
	key: "/system/login/ap",
	method: "put",
	data: Mock.mock({
		'STATUS': "SUCCESS",
		'DATA': {
			'user': {
				'userId': '@increment(1)',
				'account': "老当益壮",
				'tel|13': /[1-9]/,
			},
			'emp': {
				'name': '@cname()',
				'statu|1': ["NDP","BCH","CHA","WAK","LEV","OUT"]
			},
			'dept': {
				'deptId': '@increment(1)',
				'name': '@cname()',
			},
			'job': {
				'jobId': '@increment(1)',
				'name': '@cname()',
			},
			'roles': [{
				'roleCode': "R1",
				'name': [
					"系统管理员",
				],
				'permissions': "['mm','leave_new','leave_detail','ms','role','role_new','role_detail','role_save','permission','permission_new','permission_detail']",
			},{
				'roleCode': "R2",
				'name': [
					"组织管理员",
				],
				'permissions': "['mm','leave_new','leave_detail','mo','dept','dept_new','dept_info','job_new','job_submit','job_detail','job_save','flow_new','flow_detail','emp','emp_new','emp_info']"
			}],
			'permissionCodeString': "['mm','leave_new','leave_detail','mo','dept','dept_new','dept_info','job_new','job_submit','job_detail','job_save','flow_new','flow_detail','emp','emp_new','emp_info','ms','role','role_new','role_detail','role_save','permission','permission_new','permission_detail']",
			'permissions': [
				{
					code: "mm",
					name: "工作台",
					type: "P",
					path: "/",
					icon: "md-laptop",
					mflg: true,
					sort: 0,
					pCode: '0',
				},
				{
					code: "ms",
					name: "系统管理",
					icon: "md-apps",
					mflg: true,
					type: "M",
					pCode: '0',
					sort: 100000,
					permissions: [
						{
							code: 'role',
							name: "角色列表",
							type: "P",
							path: "/role",
							mflg: true,
							pCode: "ms"
						},
						{
							code: '13',
							name: "权限列表",
							type: "P",
							path: "/permission",
							mflg: true,
							pCode: "ms"
						},
						{
							code: '14',
							name: "字典列表",
							type: "P",
							path: "/dict",
							mflg: true,
							pCode: "ms"
						},
					],
					
				}, 
				{
					code: "mo",
					name: "组织管理",
					icon: "md-home",
					type: "M",
					mflg: true,
					sort: 200000,
					pCode: '0',
					permissions: [
						// {
						// 	code: 'dept',
						// 	name: "部门列表",
						// 	path: "/dept",
						// 	type: "P",
						// 	mflg: true,
						// 	pCode: "mo"
						// },
						
						{
							code: 'emp',
							name: "员工列表",
							type: "P",
							path: "/emp",
							mflg: true,
							pCode: "mo"
						},
						
					],
					
				}, 
				
				

				{
					code: "md",
					name: "门店管理",
					icon: "ios-paper",
					mflg: true,
					type: "M",
					pCode: '0',
					sort: 400000,
					permissions: [
						{
							code: 'store',
							name: "门店列表",
							type: "P",
							path: "/store",
							mflg: true,
							pCode: "md"
						},
						{
							code: 'room',
							name: "房间列表",
							type: "P",
							path: "/room",
							mflg: true,
							pCode: "md"
						},
						{
							code: 'dz',
							name: "店长列表",
							type: "P",
							path: "/dz",
							mflg: true,
							pCode: "md"
						},
						{
							code: 'yyjl',
							name: "场地预约列表",
							type: "P",
							path: "/yyjl",
							mflg: true,
							pCode: "md"
						},
					],
				},
				
				
				
				{
					code: "kcgl",
					name: "课程管理",
					icon: "ios-paper",
					mflg: true,
					type: "M",
					pCode: '0',
					sort: 500000,
					permissions: [
						{
							code: 'jl',
							name: "教练列表",
							type: "P",
							path: "/jl",
							mflg: true,
							pCode: "kcgl"
						},
						{
							code: 'kc',
							name: "课程列表",
							type: "P",
							path: "/kc",
							mflg: true,
							pCode: "kcgl"
						},
						{
							code: 'kctp',
							name: "课程类型列表",
							type: "P",
							path: "/kctp",
							mflg: true,
							pCode: "kcgl"
						},
					],
				},
				
				
				
				
				{
					code: "xygl",
					name: "学员管理",
					icon: "ios-paper",
					mflg: true,
					type: "M",
					pCode: '0',
					sort: 600000,
					permissions: [
						{
							code: 'client',
							name: "客户列表",
							type: "P",
							path: "/client",
							mflg: true,
							pCode: "xygl"
						},
						{
							code: 'skjl',
							name: "上课记录列表",
							type: "P",
							path: "/skjl",
							mflg: true,
							pCode: "xygl"
						},
						{
							code: 'bm',
							name: "报名列表",
							type: "P",
							path: "/bm",
							mflg: true,
							pCode: "xygl"
						},
						{
							code: 'hylx',
							name: "会员类型列表",
							type: "P",
							path: "/hylx",
							mflg: true,
							pCode: "xygl"
						},
						{
							code: 'hy',
							name: "会员列表",
							type: "P",
							path: "/hy",
							mflg: true,
							pCode: "xygl"
						},
					],
				},
				
				
				{
					code: "tkgl",
					name: "提款管理",
					icon: "ios-paper",
					mflg: true,
					type: "M",
					pCode: '0',
					sort: 700000,
					permissions: [
						{
							code: 'dztkjl',
							name: "店长提款列表",
							type: "P",
							path: "/dztkjl",
							mflg: true,
							pCode: "tkgl"
						},
						{
							code: 'jltkjl',
							name: "教练提款列表",
							type: "P",
							path: "/jltkjl",
							mflg: true,
							pCode: "tkgl"
						},
						{
							code: 'fzjl',
							name: "分账记录列表",
							type: "P",
							path: "/fzjl",
							mflg: true,
							pCode: "tkgl"
						},
						
					],
				},
				
			],
		}
	})
}];
export default system;